<?php

/**
 * PHP Captcha Form Validator
 *
 * @package    sfPHPCaptchaPlugin
 * @subpackage form
 * @author     Sven Wappler <info@wapplersystems.de>
 */
class sfValidatorPropelLevels extends sfValidatorPropelChoice {


    protected function doClean($value) {

        //var_dump( $value );exit;
        
        if( !empty($value['is_root']) ){
            return null;
        }
        
        return parent::doClean($value['choices']);


    }

}

